package ooday03;

public class Dog extends Animal implements Swim{
    String breed;//品种
    String food;

    Dog(String name,int age,String color,String breed,String food){
        super(name,age,color);
        this.breed = breed;
        this.food = food;
    }

    void lookHome(){
        System.out.println(name +"正在看家");
    }

    void eat(){
        System.out.println(name+"是一只"+color+"色的"+age+"岁的狗它正在吃"+food);
    }

    public void swim(){
        System.out.println(name+"正在游泳");
    }
}
